<!-- 老师管理 -->
<template>
	<view>
		<!-- 自定义导航栏 -->
		<view class="navBarBox">
			<!-- 状态栏占位 -->
			<view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
			<!-- 真正的导航栏内容 -->
			<view class="navBar ">
				<view class="navBars">{{techerData.teacherName}}老师</view>
			</view>
		</view>
		<!-- 页面内容 -->
		<view class="box">
			<image src="../static/img/banner.d130680.png" mode=""></image>
			<view class=" resources">
				<span class="span1">好好学习,天天向上</span>
				<span class="span2">让孩子爱上学习</span>
			</view>
			<view class="ul">
				<ul>
					<li class="li5" hover-class="ui-share-hover">
						<view @click="goCoursePlan">课程安排</view>
					</li>
				</ul>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				techerData:null,
				techerData:null,
				// 状态栏高度
				statusBarHeight: 0,
				// 导航栏高度
				navBarHeight: 82 + 11,
			}
		},
		methods: {
			//去 课程安排页
			goCoursePlan() {
				uni.navigateTo({
					url: 'coursemanag/courseScheduleCard'
				})
			},
		},
		//第一次加载时调用
		created() {
			//获取手机状态栏高度
			this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
			this.techerData=uni.getStorageSync('techerData')
			this.techerData=uni.getStorageSync('techerData')
		},
	}
</script>

<style lang="less" scoped>
	body {
		background-color: #fafafa;
	}

	.ui-share-hover {
		opacity: 0.9; //透明度变化
		transform: scale(0.9, 0.9); //缩放
	}

	.navBarBox {
		background-image: url(../static/img/schoolbg.png);
		height: 332rpx;
		background-size: 100%
	}

	.navBarBox .statusBar {
		background-color: #fbc421;
	}

	.navBarBox .navBar {
		// padding: 3rpx 50rpx;
		padding-bottom: 20rpx;
		display: flex;
		flex-direction: row;
		// justify-content: center;
		// align-items: center;
		background-color: #fbc421;
		padding-top: 10rpx;
		padding-left: 20rpx;
	}

	.navBars {
		padding: 0rpx 15rpx;
		height: 60rpx;
		background-color: #fedc7a;
		border-radius: 30rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #ffffff;
		font-size: 36rpx;
		font-weight: 900;
		position: fixed;
		left: 30rpx;
		top: 60;
	}

	.navBarBox .navBar .logo {
		width: 82rpx;
		height: 82rpx;
		margin-right: 10rpx;
		background-color: #2eb3fe;
	}

	.box {
		width: 100%;
		background-color: #fafafa;
	}

	.box image {
		width: 714rpx;
		position: relative;
		left: 20rpx;
		top: -185rpx;
	}

	.resources {
		margin-top: -185rpx;
		background: url(../static/img/schoolBack2.ce77bed.png) no-repeat;
		height: 240rpx;
		background-size: 95% 100%;
		text-align: center;
		overflow: hidden;

		.span1 {
			margin-top: 60rpx;
			margin-left: 30rpx;
			font-size: 42rpx;
			color: rgb(255, 255, 255);
			display: block;
		}

		;

		.span2 {
			display: block;
			font-size: 24rpx;
			color: rgb(255, 236, 177);
			// background-color: #ff9521;
			border-radius: 20rpx;
			width: 260rpx;
			height: 40rpx;
			line-height: 40rpx;
			display: block;
			margin-left: 35%;
			margin-top: 20rpx;
		}
	}

	.ul ul {
		list-style: none;
		
		.li5 {
			margin-left: 25rpx;
		}

		.li5 view {
			// flex: 1;
			background: url(../static/img/02.981ce89.png);
			height: 225rpx;
			width: 335rpx;
			background-size: cover;
			margin-top: 23rpx;
			margin-bottom: 40rpx;
		}

		// .li6 view{
		// 	flex: 1;
		// 	background: url(../static/img/01.3356375.png);
		// 	height: 225rpx;
		// 	width: 335rpx;
		// 	background-size: cover;
		// 	margin-top: 23rpx;
		// 	margin-bottom: 40rpx;
		// }
		li view {
			font-size: 44rpx;
			line-height: 214rpx;
			color: rgb(255, 255, 255);
			padding-left: 20rpx;

		}
	}
</style>
